package com.raise.drive.model.domain;

/**
 * Author: Evgeny Morozov
 */
public class Comment extends Persistent {

    /**
     * Hierarchy of the question.
     * If this equals to null, then it is the top of the hierarchy.
     */
    private Comment parentComment;

    /**
     * Text of comment
     */
    private String text;

    /**
     * Who created this comment
     */
    private User byWhom;


    public Comment getParentComment() {
        return parentComment;
    }

    public void setParentComment(Comment parentComment) {
        this.parentComment = parentComment;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public User getByWhom() {
        return byWhom;
    }

    public void setByWhom(User byWhom) {
        this.byWhom = byWhom;
    }
}
